// 探望
import request from '@/utils/request.js'; // 封装的request.js文件的位置
// 获取请假详情列表
export const getlistByUser = (data)=>{
	return request('/mobile/leave/listByUser',"GET",data)
}
//获取请假详情信息
export const getLeaveDetails = (data)=>{
	return request('/mobile/leave/getLeaveDetails',"GET",data)
}
// 审批老人请假
export const leaveCheck = (data)=>{
	return request('/mobile/leave/leaveCheck',"POST",data)
}
// 门卫查询当日未出的列表
export const listNotLeave = (data)=>{
	return request('/mobile/leave/listNotLeave',"GET",data)
}
// 门卫查询当日未归的列表
export const listNotReturn = (data)=>{
	return request('/mobile/leave/listNotReturn',"GET",data)
}
// 门卫查询所有外出的列表
export const leaveHosAllList = (data)=>{
	return request('/mobile/leave/leaveHosAllList',"GET",data)
}
// 离院确认
export const dischargeConfirm = (id,type)=>{
	return request(`/mobile/leave/${type? "dischargeConfirm":"backConfirm"}?id=${id}`,"POST")
}
